
import VueRouter from 'vue-router'

import homeContainer from './components/tabbar/HomeContainer.vue'
import memberContainer from './components/tabbar/MemberContainer.vue'
import shopcarContainer from './components/tabbar/ShopcarContainer.vue'
import searchContainer from './components/tabbar/SearchContainer.vue'
import newsList from './components/news/NewList.vue'
import newinfo from './components/news/NewInfo.vue'
import photoList from './components/photos/photolist.vue'
import photoinfo from './components/photos/photoinfo.vue'
import goodslist from './components/goods/goodslist.vue'
import goodinfo from './components/goods/goodinfo.vue'
import gooddesc from './components/goods/gooddesc.vue'
import goodscomment from './components/goods/goodcomment.vue'

var router = new VueRouter({
    routes:[
       {path:'/',redirect:'/home'},
       {path:'/home',component:homeContainer},
       {path:'/member',component:memberContainer},
       {path:'/shopcar',component:shopcarContainer},
       {path:'/search',component:searchContainer},
       {path:'/home/newslist',component:newsList},
       {path:'/home/newinfo/:id',component:newinfo},
       {path:'/home/photolist',component:photoList},
       {path:'/home/photoinfo/:id',component:photoinfo},
       {path:'/home/goodslist',component:goodslist},
       {path:'/home/goodsinfo/:id',component:goodinfo,name:'goodsinfo'},
       {path:'/home/goodsdesc/:id',component:gooddesc,name:'gooddesc'},
       {path:'/home/goodscomment/:id',component:goodscomment,name:'goodscomment'},
    ],
    linkActiveClass:'mui-active'
})

export default router